package com.ruoyi.project.his.mapper;

import com.ruoyi.project.his.domain.DoctorDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname DoctorDeptMapper
 * @Description
 * @Date 2022/6/27 15:39
 * @Author Lee
 */
public interface DoctorDeptMapper  {

    /**
     * 按照条件查询科室集合
     * @param doctorDept
     * @return
     */
    List<DoctorDept> selectDoctorDeptList(DoctorDept doctorDept);


    /**
     * 修改科室
     * @param doctorDept
     * @return
     */
    int updateDoctorDept(DoctorDept doctorDept);

    /**
     * @Author Lee
     * @Description 查询所有科室
     * @Date 2022/6/27 15:46
     * @Param null
     * @return java.util.List<com.ruoyi.project.his.domain.DoctorDept>
     **/
    List<DoctorDept> selectDoctorDeptAll();

    /**
     * @Author Lee
     * @Description 新增科室
     * @Date 2022/6/27 16:50
     * @Param doctorDept
     * @return int
     **/
    int insertDoctorDept(DoctorDept doctorDept);


    /**
     * @Author Lee
     * @Description 根据id获取科室信息
     * @Date 2022/6/27 16:52
     * @Param  id
     * @return com.ruoyi.project.his.domain.DoctorDept
     **/
    DoctorDept getDoctorDeptById(Integer id);


    /**
     * @Author Lee
     * @Description 根据主键删除科室
     * @Date 2022/6/27 16:53
     * @Param  ids
     * @return int
     **/
    int deleteDoctorDeptByDeptIds(@Param("deptIds") Integer[] ids);

    /**
     * 校验科室名称唯一
     * @param deptName
     * @return
     */
    DoctorDept checkDocketDeptNameUnique(String deptName);

    /**
     * 校验科室编码唯一
     * @param deptCode
     * @return
     */
    DoctorDept checkDocketDeptCodeUnique(String deptCode);
}
